package demo2_simple_data_struct.test;

import demo2_simple_data_struct.MyQueue;

public class TesQueuet {
    public static void main(String[] args) {
        MyQueue myQueue= new MyQueue();
        myQueue.add(9);
        myQueue.add(8);
        myQueue.add(7);
        System.out.println(myQueue.poll());
        System.out.println(myQueue.poll());
        myQueue.add(6);
        System.out.println(myQueue.poll());
        System.out.println(myQueue.poll());
        System.out.println(myQueue.isEmpty());
    }
}
